package cn.ly.security.service.impl;

import cn.ly.security.dao.RoleMapper;
import cn.ly.security.dao.UserMapper;
import cn.ly.security.entity.Role;
import cn.ly.security.entity.User;
import cn.ly.security.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Autowired
    RoleMapper roleMapper;
    @Override
    public Integer selecRidtByName(String rName) {
        Role role = new Role();
        role.setRName(rName);
        Integer rid = roleMapper.selecRidtByName(role);
        return rid;
    }
}
